<?php
include_once "xAP-functions/webincludes.php";
echo webpageheader();


$sql="select LineStatus,LineNetwork,LinexAPSource from xAP_Telephone_Line 
where LineDateTime>'".date("Y-m-d H:i:s",time()-60*100)."'
order by LinexAPSource";
$results=dbquery($sql);

//display
echo "<center><Table>";
foreach($results as $row){
echo "<tr>
<TD><img src='images/".$row["LineStatus"].".gif' title='".$row["LineStatus"]."'></td>
<TD>".$row["LineNetwork"]."</td>
<TD>".$row["LinexAPSource"]."</td>
</tr>";
}
echo "</table></center>";
echo webpagefooter();
?>